<%--
  Created by IntelliJ IDEA.
  User: id
  Date: 2020/12/29
  Time: 18:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page  isELIgnored="false" contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script type="text/javascript" src="../../../static/jquery-3.4.1.js"></script>
    <link rel="stylesheet" href="../../../static/enterGood1.css">
    <script type="text/javascript">
        $(function () {

            $("#di1").hover(function () {
                    $("#xs").show()
                    $("#d2").hide()
                    $("#d3").hide()
                    $("#d4").hide()
                }
            )


            $("#di2").hover(function () {
                    $("#d2").show()
                    $("#xs").hide()
                    $("#d3").hide()
                    $("#d4").hide()
                }
            )

            $("#di3").hover(function () {
                    $("#d3").show()
                    $("#xs").hide()
                    $("#d2").hide()
                    $("#d4").hide()
                }
            )

            $("#di4").hover(function () {
                    $("#d4").show()
                    $("#xs").hide()
                    $("#d3").hide()
                    $("#d2").hide()
                }
            )


            $("#center").hover(function () {
                $("#d4").hide()
                $("#xs").hide()
                $("#d3").hide()
                $("#d4").hide()
            })

            $("#i1").hover(function () {
                $("#xs").hide()
            })

            $("#i2").hover(function () {
                $("#d4").hide()
            })

            $("#aa").click(function () {
                    $("#zuo").fadeToggle("slow")
                }
            )

            $("#aaa").click(function () {
                    $("#you").fadeToggle("slow")
                }
            )


            $("body").mouseover(function () {

            })

        })

        /*退出*/
        function exit() {
            var url="${pageContext.request.contextPath}/exit";
            if(confirm("您确认退出吗?")){
                location.href=url;
                return true;
            }else {
                return  false;
            }
        }

    </script>
</head>
<body>

<div id="left">
    <div class="top">
        <span>博宏</span>
    </div>

    <c:if test="${sessionScope.boosUser!=null || sessionScope.makerAndINOOTUser!=null}">
    <div id="i1"></div>
    <!--销售-->
    <div class="div1" id="di1">
        <img src="../../../static/img/01.png" alt=""><span>销售</span>
    </div>
    </c:if>



    <!--库存-->
<c:if test="${sessionScope.boosUser!=null || sessionScope.resUser!=null || sessionScope.makerAndINOOTUser!=null}">
    <div class="div1" id="di2">
        <img src="../../../static/img/02.png" alt=""><span>库存</span>
    </div>
</c:if>

    <!--财务-->
<c:if test="${sessionScope.boosUser!=null}">
    <div class="div1" id="di3">
        <img src="../../../static/img/03.png" alt=""><span>财务</span>
    </div>
</c:if>


    <!--信息-->
<c:if test="${sessionScope.boosUser!=null}">
    <div class="div1" id="di4">
        <img src="../../../static/img/05.png" alt=""><span>资料</span>
    </div>
    <!--隐藏的小手-->
    <div id="i2"></div>
</div>
</c:if>



<!--销售的隐藏内容-->
<div class="d1" id="xs" style="background-color: rgb(248,248,248)">
    <div class="dd1">
        <span class="s1">销售</span>
    </div>
    <li class="li1"><a href="${pageContext.request.contextPath}/Maker1/findAllByPage">&nbsp;销售订单</a>&nbsp;&nbsp;
<c:if test="${sessionScope.boosUser!=null}">
        <a href="${pageContext.request.contextPath}/Maker1/addMaker1">+</a>
</c:if>
    </li>
    <li class="li1"><a href="${pageContext.request.contextPath}/maker3Controller/pageMaker3">&nbsp;销售单</a>&nbsp;&nbsp;</li>
    <li class="li1"><a href="${pageContext.request.contextPath}/maker3Controller/THMaker3">&nbsp;销售退货</a>&nbsp;&nbsp;</li>
</div>




<div id="d2" style="background-color: rgb(248,248,248)">
    <!--库存-->
    <div class="d1 d2">
        <div class="dd1" >
            <span class="s1">进货</span>
        </div>
        <li class="li1"><a href="${pageContext.request.contextPath}/EnterGood/EnterPageGood?document=">&nbsp;进货订单</a>&nbsp;&nbsp;
<c:if test="${sessionScope.boosUser!=null || sessionScope.resUser!=null}">
            <a href="${pageContext.request.contextPath}/EnterGood/addEnterGood">+</a>
</c:if>
        </li>
        <li class="li1"><a href="${pageContext.request.contextPath}/EnterGoodOk/findAll">&nbsp;进货单</a>&nbsp;&nbsp;</li>
        <li class="li1"><a href="${pageContext.request.contextPath}/EnterGoodOk/findAll2">&nbsp;进货退货</a></li>
        <c:if test="${sessionScope.boosUser!=null}">
        <li class="li1"><a href="${pageContext.request.contextPath}/preAddLack">&nbsp;suggestions</a></li>
        </c:if>
    </div>

    <div class="d1 d2">
        <div class="dd1">
            <span class="s1">库存</span>
        </div>
        <li class="li1" style="text-align: center"><a href="${pageContext.request.contextPath}/IntoAndOut/EnterFindAll">&nbsp;入库</a></li>
        <li class="li1" style="text-align: center"><a href="${pageContext.request.contextPath}/IntoAndOut/OutFindAll">&nbsp;出库</a></li>
    </div>

    <div class="d1 d2">
        <div class="dd1">
            <span class="s1">inquire</span>
        </div>
        <li class="li1"><a href="${pageContext.request.contextPath}/Tracking/findAllByTr">&nbsp;订单跟踪</a></li>
<c:if test="${sessionScope.boosUser!=null|| sessionScope.resUser!=null}">
        <li class="li1"><a href="${pageContext.request.contextPath}/findLackList?goodname3=">&nbsp;suggestions</a></li>
</c:if>
    </div>



</div>




<!--财务-->
<div id="d3" style="background-color: rgb(248,248,248)">
    <div class="dd1">
        <span class="s1">往来账</span>
    </div>
    <li class="li1"><a href="${pageContext.request.contextPath}/bank/loginBank">资金流水</a></li>
</div>
</div>


<div id="d4" style="background-color: rgb(248,248,248)">
    <div class="dd1">
        <span class="s1">角色</span>
    </div>
    <br>
    <li class="li1"><a href="${pageContext.request.contextPath}/user/findAllUser">员工</a>&nbsp;&nbsp;<a href="${pageContext.request.contextPath}/user/addUser">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+</a></li>
    <li class="li1"><a href="${pageContext.request.contextPath}/Stores/findAllStores">门店</a>&nbsp;&nbsp;<a href="${pageContext.request.contextPath}/Stores/addst">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+</a></li>
    <li class="li1"><a href="${pageContext.request.contextPath}/Repository/findAllRepository">仓库</a>&nbsp;&nbsp;<a href="${pageContext.request.contextPath}/Repository/addR">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+</a></li>
</div>
</div>


<div id="top">
    <div id="rig">
        <a href="#" id="aa"><img src="../../../static/img/铃铛.png" alt="" class="img1"></a>&nbsp;
        <a href="#" id="aaa"> <img src="../../../static/img/人.png" alt="" class="img1"></a> &nbsp; <a href="" style="color: blueviolet">${sessionScope.boosUser} ${sessionScope.resUser} ${sessionScope.makerAndINOOTUser}</a>
        &nbsp; <a href="javascript:exit()">exit</a>
    </div>
</div>

<div id="zuo" style="z-index: 222">
    <div>
        <span>预警报告</span>
    </div><br>
    <div>
        <span>低库存</span>
        <span>有0个商品低于库存预警线</span>
    </div><br>
    <div>
        <span>高库存</span>
        <span>有0个商品高于库存预警线</span>
    </div>
</div>
<div id="you" style="z-index: 333">
    <div>
        <span>博宏</span>
    </div><br>
    <div>
        <span>低库存</span>
        <span>有0个商品低于库存预警线</span>
    </div><br>
    <div>
        <span>高库存</span>
        <span>有0个商品高于库存预警线</span>
    </div>
</div>
</body>
</html>
